package com.keqing.tomato.bean;

import java.util.ArrayList;
import java.util.List;

public class MySetting {
    public static final int AUTO_REST_NO = 0;
    public static final int AUTO_REST_YES = 1;
    public static final int AUTO_FOCUS_NO = 0;
    public static final int AUTO_FOCUS_YES = 1;
    public static final int SHAKE_NO = 0;
    public static final int SHAKE_YES = 1;

    public static final int default_focus_time = 25;
    public static final int default_rest_time = 5;
    public static final String default_focus_sound = "sound/Bell1.mp3";
    public static final String default_rest_sound = "sound/Bell2.mp3";
    public static final boolean default_vibration = true;
    public static final boolean default_auto_rest = false;



    public static final List<Sound> soudList = new ArrayList<Sound>(){{
        add(new Sound("sound/Beeps.mp3", "哔~"));
        add(new Sound("sound/Bell1.mp3", "叮一声"));
        add(new Sound("sound/Bell2.mp3", "叮两声"));
        add(new Sound("sound/Bicycle Bell.mp3", "单车铃声"));
        add(new Sound("sound/Birdcall.mp3", "鸟叫声"));
        add(new Sound("sound/Done.wav", "完成音"));
        add(new Sound("sound/Drum Cymbal Crash.mp3", "鼓点"));
        add(new Sound("sound/Failed.wav", "失败音"));
        add(new Sound("sound/Fanfare.mp3", "狂热音"));
        add(new Sound("sound/Musical1.mp3", "乐章一"));
        add(new Sound("sound/Musical2.mp3", "乐章二"));
        add(new Sound("sound/Musical3.mp3", "乐章三"));

    }};

    public static final int[] tomato_time_array = {25, 30, 35, 40, 45, 50, 60, 70, 80, 90};
    public static final int[] rest_time_array = {5, 10 , 15, 20 , 25, 30, 35, 40, 45, 50, 60, 70, 80, 90};


    private int id;
    private int focusTime;
    private int restTime;
    private int isAutoRest;
    private int isAutoFocus;
    private String focusSound;
    private String restSound;
    private int isShake;

    public MySetting() {
    }

    public MySetting(int id, int focusTime, int restTime, int isAutoRest, int isAutoFocus, String focusSound, String restSound, int isShake) {
        this.id = id;
        this.focusTime = focusTime;
        this.restTime = restTime;
        this.isAutoRest = isAutoRest;
        this.isAutoFocus = isAutoFocus;
        this.focusSound = focusSound;
        this.restSound = restSound;
        this.isShake = isShake;
    }

    public MySetting(int focusTime, int restTime, int isAutoRest, int isAutoFocus, String focusSound, String restSound, int isShake) {
        this.focusTime = focusTime;
        this.restTime = restTime;
        this.isAutoRest = isAutoRest;
        this.isAutoFocus = isAutoFocus;
        this.focusSound = focusSound;
        this.restSound = restSound;
        this.isShake = isShake;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getFocusTime() {
        return focusTime;
    }

    public void setFocusTime(int focusTime) {
        this.focusTime = focusTime;
    }

    public int getRestTime() {
        return restTime;
    }

    public void setRestTime(int restTime) {
        this.restTime = restTime;
    }

    public int getIsAutoRest() {
        return isAutoRest;
    }

    public void setIsAutoRest(int isAutoRest) {
        this.isAutoRest = isAutoRest;
    }

    public int getIsAutoFocus() {
        return isAutoFocus;
    }

    public void setIsAutoFocus(int isAutoFocus) {
        this.isAutoFocus = isAutoFocus;
    }

    public String getFocusSound() {
        return focusSound;
    }

    public void setFocusSound(String focusSound) {
        this.focusSound = focusSound;
    }

    public String getRestSound() {
        return restSound;
    }

    public void setRestSound(String restSound) {
        this.restSound = restSound;
    }

    public int getIsShake() {
        return isShake;
    }

    public void setIsShake(int isShake) {
        this.isShake = isShake;
    }
}
